/*
 * @Author: 许警 11378748333@
 * @Date: 2024-10-22 13:15:00
 * @LastEditors: 许警 11378748333@
 * @LastEditTime: 2025-01-14 13:52:21
 * @FilePath: /hsxlsystem/src/api/market/index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import http from '../request.js'
let url = '/admin/ticket/'
// 列表
export function list(data) {
  return http.request({
    url: url + 'selectTicketList',
    data,
    method: 'post'
  })
}
// 新增
export function insertTicket(data) {
  return http.request({
    url: url + 'insertTicket',
    data,
    method: 'post'
  })
}
// 详情
export function detail(data) {
  return http.request({
    url: url + 'selectTicketById',
    params: data
  })
}
// 自定义服务
export function findMakeSerives(data) {
  return http.request({
    url: url + 'findMakeSerives',
    params: data
  })
}
// 自定义人群
export function findMakeUser(data) {
  return http.request({
    url: url + 'findMakeUser',
    params: data
  })
}
// 删除
export function deleteItem(params) {
  return http.request({
    url: url + 'deleteTicket',
    params,
    method: 'get'
  })
}
// 修改优惠券状态
export function operationStatus(data) {
  return http.request({
    url: url + 'operationStatus',
    data,
    method: 'post'
  })
}

// 优惠券审核
export function ticketAudit(data) {
  return http.request({
    url: url + 'ticketAudit',
    data,
    method: 'post'
  })
}

// 优惠券审核列表
export function ticketAuditList(data) {
  return http.request({
    url: url + 'ticketAuditList',
    params: data
  })
}

// 优惠券审核查看
export function ticketAuditListDetail(data) {
  return http.request({
    url: url + 'ticketAuditListDetail',
    params: data
  })
}

// 编辑
// export function edit(data) {
//     return http.request({
//         url: url + 'editorArticleInfo',
//         data,
//         method: 'post'
//     })
// }
